package com.wmh.baseservice.user.service;

import com.wmh.baseservice.common.mybatisplus.methods.CommonService;
import com.wmh.baseservice.user.pojo.UsInfo;
import com.wmh.baseservice.user.pojo.UsParentOrder;
import com.wmh.baseservice.user.pojo.UsVegetableOrder;

import java.util.List;

/**
 * @author mmx generator
 * @since 2021-12-24
 */
public interface UsVegetableOrderService extends CommonService<UsVegetableOrder> {

    /**
     * 果蔬产品余额支付
     */
    void balancePay(UsVegetableOrder usVegetableOrder, UsInfo usInfo);

    /**
     * 订单取消
     */
    void cancelOrder(Long value);

    /**
     * 果蔬微信支付
     */
    void weChatPay(String orderNum);

    /**
     * 确认收货(扫码核销回调)
     */
    void confirm(UsVegetableOrder usVegetableOrder);

    /**
     * 自动收货
     */
    List<UsVegetableOrder> autoDeliver(String value);

    /**
     * 查询用户30秒内是否有提交订单
     */
    int queryShortOrder(Long usId);

    /**
     * 购物车结算
     */
    void shopCarWeChatPay(String orderNum);

    /**
     * 果蔬订单发货
     */
    void deliver(UsVegetableOrder vegetableOrder, UsParentOrder parentOrder);

}
